<?php
	session_write_close();
	if(isset($_GET['referer'])) {
		header ("location: ".str_replace('|','&',str_replace('*','=',$_GET['referer'])));
	} elseif(isset($_POST['referer'])) {
		header ("location: ".str_replace('|','&',str_replace('*','=',$_POST['referer'])));
	} else{
		header ("location: ".$_SERVER['HTTP_REFERER']);
	}
	$mysqlclass->close_db();
	include $setupdata['core_dir']."/includes/die.php";
?>